package com.paw.distribute.session.config;

import com.paw.distribute.session.resolver.TokenHttpSessionIdResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.session.web.http.HttpSessionIdResolver;

/**
 * @author lvzihai
 * @date 2021/6/18
 **/
@Configuration
public class WebConfiguration {

  @Bean
  public HttpSessionIdResolver httpSessionIdResolver(){
    return new TokenHttpSessionIdResolver();
  }

}
